package com.estun.backroundManagementService.modules.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.estun.backroundManagementService.modules.product.model.ProductStationTime;

import java.util.List;


/**
 * <p>
 * 产品过站记录表 服务类
 * </p>
 *
 * @author machine
 * @since 2023-02-14
 */
public interface ProductStationTimeService extends IService<ProductStationTime> {

    ProductStationTime getByProductIdAndStationId(Long productId, String stationId);

    List<ProductStationTime> getByProductId(Long id);

    List<ProductStationTime> getListToBePushed();

    //没有产品码的数据进行处理 防止一直推送失败
    void handleNoProductNoByProductId(Long productId, String stationId);

    ProductStationTime getByProductNoAndStationCode(String productNo, String stationCode);
}
